﻿using System;
using System.ComponentModel.DataAnnotations;

namespace ProjetoComperio.DataLayer.Entities
{
    public class Person
    {
        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        public virtual int PersonID { get; set; }

        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        public virtual String Name { get; set; }

        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        public virtual String Email { get; set; }

        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        public virtual DateTime BirthDate { get; set; }

        public virtual String Country { get; set; }
        public virtual String State { get; set; }
        public virtual String Neighbourhood { get; set; }
        public virtual String ZipCode { get; set; }
        public virtual String Street { get; set; }
        public virtual String AddressNumber { get; set; }
        public virtual String City { get; set; }
        public virtual String WebPage { get; set; }

        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        public virtual int EducationLevelID { get; set; }
        public virtual EducationLevel EducationLevel { get; set; }

    }
}
